//
//  UIViewController+EmptyView.h
//  SSSMerchant
//
//  Created by 谢曦 on 2017/4/10.
//  Copyright © 2017年 xnxin. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void (^EmptyViewReloadDataBlock)();
typedef NS_ENUM(NSInteger, EmptyViewType)
{
     EmptyViewTypeImage = 0,//仅图片
    EmptyViewTypeImageLable ,//图片+文字
    EmptyViewTypeLable//仅文字
};

@interface EmptyView : UIView
@property (nonatomic,copy) NSString *loadTitle;//按钮文字
@property (nonatomic,strong) UIImage  *showImage;
@property (nonatomic,copy) NSString *tipText;
+(EmptyView *)emptyViewWithType:(EmptyViewType)type tipText:(NSString *)tip imageName:(NSString *)imageName showLoadBtn:(BOOL)show  reloadBlock:(EmptyViewReloadDataBlock)block;
-(void)showInView:(UIView *)view;
@end
//
//@interface UIView (EmptyView)
//-(void)emptyViewWithType:(EmptyViewType)type showLoadBtn:(BOOL)show   andReloadBlock:(EmptyViewReloadDataBlock)block;
//@end
